{% extends "societies/profile/society_profile.html" %}

{% block extra %}
	{% if user.is_authenticated %}
		<hr />
		<div class="society_button_container">
			{% if user in society.members.all %}
				<a href="/societies/{{society.slug}}/leave" class="btn danger">Leave Society</a>
			{% else %}
				<a href="/societies/{{society.slug}}/join" class="btn primary">Join Society</a>
			{% endif %}
			<hr/>
			{% if perms.societies.change_society %}
				<a href="/societies/{{society.slug}}/settings" class="btn primary">Edit Society</a>
			{% endif %}
		</div>
	{% endif %}
{% endblock %}